import React from 'react';
import './App.less';
import { BrowserRouter as Router, Redirect, Route } from 'react-router-dom'
import Layout from "./page/Layout";
import Home from "./page/Home";
import Over from './page/Over'
import Ambient from './page/Ambient'
import AmbientInto from './page/AmbientInto'
import Tool from './page/Tool';
import Multicast from './page/Multicast'
import InputHome from './page/input/inputHome';
import CasesError from './page/input/cases-error'
import CasesVerification from './page/input/cases-verification'
import Antecedents from './page/input/Antecedents'
import PostTask from './page/input/Post-task'
import RunHome from './page/Run/RunHome'
import RunAdd from './page/Run/RunAdd'
import RunC  from './page/Run/RunC'
import NewRun from './page/Run/NewRun'
import OverItem from './page/Over/OverItem'
class App extends React.Component {
  render() {
    return (
      <Router>
        <Layout>
          <Route exact path='/' component={Home} />
          <Redirect from='*' to='/' />
          <Route path='/over' component={Over}/>
          <Route path='/Ambient' component={Ambient}/>

          <Route path='/Ambient-into/:env_id?' component={AmbientInto}/>

          <Route path='/Tool' component={Tool}/>
          <Route path='/Multicast' component={Multicast}/>
          <Route path='/InputHome' component={InputHome}/>
          <Route path='/cases-error' component={CasesError}/>
          <Route path='/cases-verification' component={CasesVerification}/>
          <Route path='/Antecedents' component={Antecedents}/>
          <Route path='/Post-task' component={PostTask}/>
          <Route path='/Run' component={RunHome}/>
          <Route path='/RunAdd' component={RunAdd}/>
          <Route path='/RunC' component={RunC}/>
          <Route path='/NewRun' component={NewRun}/>
          <Route path='/OverItem' component={OverItem}/>
        </Layout>

      </Router>

    )
  }
}
export default App